/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package util;

import javax.swing.DefaultComboBoxModel;

/**
 *
 * @author Gabriel
 */
public class ComboBoxEstados extends DefaultComboBoxModel {
    public ComboBoxEstados(boolean todos) {
        if(todos)            
            this.addElement("Todos");

        this.addEstados();
    }
    
    public ComboBoxEstados() {
        this.addEstados();
    }

    private void addEstados() {
        this.addElement("AC");
        this.addElement("AL");
        this.addElement("AP");
        this.addElement("AM");
        this.addElement("BA");
        this.addElement("CE");
        this.addElement("DF");
        this.addElement("ES");
        this.addElement("GO");
        this.addElement("MA");
        this.addElement("MT");
        this.addElement("MS");
        this.addElement("MG");
        this.addElement("PA");
        this.addElement("PB");
        this.addElement("PR");
        this.addElement("PE");
        this.addElement("PI");
        this.addElement("RJ");
        this.addElement("RN");
        this.addElement("RS");
        this.addElement("RO");
        this.addElement("RJ");
        this.addElement("RR");
        this.addElement("SC");
        this.addElement("SP");
        this.addElement("SE");
        this.addElement("TO");
    }
}
